<?php

$ranges = array(
'2400:1000::/32' => 'JP', '2400:1080::/32' => 'HK', '2400:1100::/32' => 'HK', '2400:1180::/32' => 'HK', '2400:1200::/32' => 'NZ', '2400:1280::/32' => 'HK', '2400:1300::/32' => 'TW', '2400:1380::/32' => 'CN', '2400:1400::/32' => 'ID', '2400:1480::/32' => 'SG', 
'2400:1500::/32' => 'TW', '2400:1580::/32' => 'NZ', '2400:1600::/32' => 'IN', '2400:1680::/32' => 'PK', '2400:1700::/32' => 'SG', '2400:1780::/32' => 'AU', '2400:1800::/32' => 'KR', '2400:1880::/32' => 'ID', '2400:1900::/32' => 'AU', '2400:1980::/32' => 'AF', '2400:1a00::/32' => 'NP', 
'2400:1a80::/32' => 'PK', '2400:1b00::/32' => 'AU', '2400:1b80::/32' => 'JP', '2400:1c00::/32' => 'SG', '2400:1c80::/32' => 'HK', '2400:1d00::/32' => 'SG', '2400:1d80::/32' => 'HK', '2400:1e00::/32' => 'IN', '2400:1e80::/32' => 'HK', '2400:1f00::/32' => 'IN', '2400:1f80::/32' => 'HK', 
'2400:2000::/20' => 'JP', '2400:3000::/32' => 'JP', '2400:3080::/32' => 'AF', '2400:3100::/32' => 'VU', '2400:3180::/32' => 'IN', '2400:3200::/32' => 'CN', '2400:3280::/32' => 'CN', '2400:3300::/32' => 'KR', '2400:3380::/32' => 'IN', '2400:3400::/32' => 'VU', '2400:3480::/32' => 'TH', 
'2400:3500::/32' => 'TV', '2400:3580::/32' => 'ID', '2400:3600::/32' => 'CN', '2400:3680::/32' => 'IN', '2400:3700::/32' => 'MY', '2400:3800::/32' => 'JP', '2400:3880::/32' => 'AU', '2400:3900::/32' => 'AU', '2400:3980::/32' => 'JP', '2400:3a00::/32' => 'CN', '2400:3a80::/32' => 'IN', 
'2400:3b00::/32' => 'IN', '2400:3b80::/32' => 'IN', '2400:3c00::/32' => 'SG', '2400:3c80::/32' => 'AU', '2400:3d00::/32' => 'AU', '2400:3d80::/32' => 'NZ', '2400:3e00::/32' => 'CN', '2400:3e80::/32' => 'JP', '2400:3f00::/32' => 'SG', '2400:3f80::/32' => 'JP', '2400:4000::/22' => 'JP', 
'2400:4400::/32' => 'MY', '2400:4480::/32' => 'IN', '2400:4500::/32' => 'TW', '2400:4580::/32' => 'HK', '2400:4600::/32' => 'CN', '2400:4680::/32' => 'SG', '2400:4700::/32' => 'AU', '2400:4780::/32' => 'KR', '2400:4800::/32' => 'NZ', '2400:4880::/32' => 'KH', '2400:4900::/32' => 'SG', 
'2400:4980::/32' => 'KR', '2400:4a00::/32' => 'ID', '2400:4a80::/32' => 'IN', '2400:4b00::/32' => 'AU', '2400:4b80::/32' => 'AU', '2400:4c00::/32' => 'HK', '2400:4c80::/32' => 'ID', '2400:4d00::/32' => 'AU', '2400:4d80::/32' => 'SG', '2400:4e00::/32' => 'CN', '2400:4e80::/32' => 'TW', 
'2400:4f00::/32' => 'PK', '2400:4f80::/32' => 'TH', '2400:5000::/32' => 'AU', '2400:5080::/32' => 'CN', '2400:5100::/32' => 'JP', '2400:5180::/32' => 'AF', '2400:5200::/32' => 'IN', '2400:5280::/32' => 'CN', '2400:5300::/32' => 'IN', '2400:5380::/32' => 'MY', '2400:5400::/32' => 'CN', 
'2400:5480::/32' => 'HK', '2400:5500::/32' => 'PH', '2400:5580::/32' => 'CN', '2400:5600::/32' => 'CN', '2400:5680::/32' => 'MY', '2400:5700::/32' => 'IN', '2400:5780::/32' => 'TH', '2400:5800::/32' => 'BD', '2400:5880::/32' => 'MY', '2400:5900::/32' => 'NZ', '2400:5980::/32' => 'SG', 
'2400:5a00::/32' => 'CN', '2400:5a80::/32' => 'BD', '2400:5b00::/32' => 'NZ', '2400:5b80::/32' => 'AU', '2400:5c00::/32' => 'AU', '2400:5c80::/32' => 'CN', '2400:5d00::/32' => 'AU', '2400:5d80::/32' => 'AU', '2400:5e00::/32' => 'AU', '2400:5e80::/32' => 'CN', '2400:5f00::/32' => 'PF', 
'2400:5f80::/32' => 'HK', '2400:6000::/32' => 'CN', '2400:6080::/32' => 'NZ', '2400:6100::/32' => 'AU', '2400:6180::/32' => 'SG', '2400:6200::/32' => 'CN', '2400:6280::/32' => 'TH', '2400:6300::/32' => 'IN', '2400:6380::/32' => 'AU', '2400:6400::/32' => 'TO', '2400:6480::/32' => 'IN', 
'2400:6500::/32' => 'SG', '2400:6580::/32' => 'IN', '2400:6600::/32' => 'CN', '2400:6680::/32' => 'SG', '2400:6700::/32' => 'JP', '2400:6780::/32' => 'SG', '2400:6800::/32' => 'AU', '2400:6880::/32' => 'AU', '2400:6900::/32' => 'NZ', '2400:6980::/32' => 'AU', '2400:6a00::/32' => 'CN', 
'2400:6a80::/32' => 'PH', '2400:6b00::/32' => 'JP', '2400:6b80::/32' => 'IN', '2400:6c00::/32' => 'AU', '2400:6c80::/32' => 'HK', '2400:6d00::/32' => 'FJ', '2400:6d80::/32' => 'AU', '2400:6e00::/32' => 'CN', '2400:6e80::/32' => 'MY', '2400:6f00::/32' => 'JP', '2400:6f80::/32' => 'CN', 
'2400:7000::/32' => 'TW', '2400:7080::/32' => 'NP', '2400:7100::/32' => 'CN', '2400:7180::/32' => 'AU', '2400:7200::/32' => 'CN', '2400:7300::/32' => 'HK', '2400:7380::/32' => 'NZ', '2400:7400::/32' => 'MY', '2400:7480::/32' => 'MN', '2400:7500::/32' => 'ID', '2400:7580::/32' => 'AU', 
'2400:7600::/32' => 'AU', '2400:7680::/32' => 'CN', '2400:7700::/32' => 'NZ', '2400:7780::/32' => 'IN', '2400:7800::/32' => 'JP', '2400:7900::/32' => 'IN', '2400:7a00::/32' => 'HK', '2400:7b00::/32' => 'JP', '2400:7c00::/32' => 'MY', '2400:7d00::/32' => 'AU', '2400:7e00::/32' => 'JP', 
'2400:7f00::/32' => 'AU', '2400:8000::/32' => 'ID', '2400:8100::/32' => 'AU', '2400:8200::/32' => 'CN', '2400:8300::/32' => 'JP', '2400:8400::/32' => 'JP', '2400:8500::/32' => 'JP', '2400:8600::/32' => 'CN', '2400:8700::/32' => 'JP', '2400:8800::/32' => 'HK', '2400:8900::/32' => 'SG', 
'2400:8a00::/32' => 'AU', '2400:8b00::/32' => 'ID', '2400:8c00::/32' => 'NZ', '2400:8d00::/32' => 'HK', '2400:8e00::/32' => 'CN', '2400:8f00::/32' => 'CN', '2400:9000::/32' => 'AU', '2400:9100::/32' => 'VN', '2400:9200::/32' => 'JP', '2400:9300::/32' => 'PG', '2400:9400::/32' => 'BN', 
'2400:9500::/32' => 'NP', '2400:9600::/32' => 'CN', '2400:9700::/32' => 'NP', '2400:9800::/32' => 'ID', '2400:9900::/32' => 'NP', '2400:9a00::/32' => 'CN', '2400:9b00::/32' => 'NP', '2400:9c00::/32' => 'AU', '2400:9d00::/32' => 'PH', '2400:9e00::/32' => 'CN', '2400::/20' => 'KR', 
'2400:a000::/32' => 'IN', '2400:a100::/32' => 'NP', '2400:a300::/32' => 'JP', '2400:a400::/32' => 'NP', '2400:a500::/32' => 'AU', '2400:a600::/32' => 'AU', '2400:a700::/32' => 'AU', '2400:a800::/32' => 'JP', '2400:a900::/32' => 'CN', '2400:aa00::/32' => 'LA', '2400:ab00::/32' => 'KR', 
'2400:ac00::/32' => 'JP', '2400:ad00::/32' => 'AU', '2400:ae00::/32' => 'CN', '2400:b000::/32' => 'PH', '2400:b100::/32' => 'AU', '2400:b200::/32' => 'CN', '2400:b300::/32' => 'AU', '2400:b400::/32' => 'NZ', '2400:b500::/32' => 'CN', '2400:b600::/32' => 'CN', '2400:b700::/32' => 'CN', 
'2400:b800::/32' => 'AU', '2400:b900::/32' => 'PH', '2400:ba00::/32' => 'CN', '2400:bb00::/32' => 'SG', '2400:bc00::/32' => 'AU', '2400:bd00::/32' => 'NZ', '2400:be00::/32' => 'CN', '2400:bf00::/32' => 'CN', '2400:c000::/32' => 'NZ', '2400:c100::/32' => 'AU', '2400:c200::/32' => 'CN', 
'2400:c300::/32' => 'HK', '2400:c400::/32' => 'AU', '2400:c500::/32' => 'AU', '2400:c600::/32' => 'BD', '2400:c700::/32' => 'IN', '2400:c800::/32' => 'HK', '2400:c900::/32' => 'ID', '2400:ca00::/32' => 'BD', '2400:cb00::/32' => 'HK', '2400:cc00::/32' => 'AU', '2400:cd00::/32' => 'TH', 
'2400:ce00::/32' => 'CN', '2400:cf00::/32' => 'KR', '2400:d000::/32' => 'PH', '2400:d100::/32' => 'CN', '2400:d200::/32' => 'CN', '2400:d300::/32' => 'CN', '2400:d400::/32' => 'AU', '2400:d500::/32' => 'AU', '2400:d600::/32' => 'CN', '2400:d700::/32' => 'HK', '2400:d800::/32' => 'SG', 
'2400:d801::/32' => 'SG', '2400:d802::/31' => 'SG', '2400:d900::/32' => 'LK', '2400:da00::/32' => 'CN', '2400:db00::/32' => 'HK', '2400:dc00::/32' => 'ID', '2400:dd00::/28' => 'CN', '2400:de00::/32' => 'CN', '2400:df00::/32' => 'JP', '2400:e000::/32' => 'JP', '2400:e100::/32' => 'JP', 
'2400:e200::/32' => 'AU', '2400:e300::/32' => 'AU', '2400:e400::/32' => 'JP', '2400:e500::/32' => 'AF', '2400:e900::/32' => 'AU', '2400:ea00::/32' => 'TH', '2400:eb00::/32' => 'AU', '2400:ec00::/32' => 'AU', '2400:ed00::/32' => 'SG', '2400:ee00::/32' => 'CN', '2400:ef00::/32' => 'HK', 
'2400:f000::/32' => 'HK', '2400:f100::/32' => 'HK', '2400:f200::/32' => 'PH', '2400:f300::/32' => 'IN', '2400:f400::/32' => 'JP', '2400:f600::/32' => 'PH', '2400:f700::/32' => 'HK', '2400:f800::/32' => 'HK', '2400:f900::/32' => 'AU', '2400:fa00::/32' => 'AU', '2400:fb00::/32' => 'ID', 
'2400:fc00::/32' => 'PK', '2400:fd00::/32' => 'BD', '2400:fe00::/32' => 'CN', '2400:ff00::/32' => 'LK'
);